using UnityEngine;

[ExecuteInEditMode]
public class MoPubNativeAdsToggler : MonoBehaviour
{
	private void Awake()
	{
		if (Application.isPlaying)
		{
			base.enabled = false;
		}
	}

	private void Update()
	{
		base.gameObject.hideFlags = (HideFlags.HideInHierarchy | HideFlags.HideInInspector);
		foreach (Transform item in base.transform)
		{
			item.gameObject.SetActive(value: false);
		}
	}
}
